@csrf
<div class="layui-row">
    <div class="layui-form-item">
        <label for="name" class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input name="name" type="text" class="layui-input" value="{{$block->name??''}}" placeholder="请填写版块名称">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="code" class="layui-form-label">编码</label>
        <div class="layui-input-block">
            <input name="code" type="text" class="layui-input" value="{{$block->code??''}}" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label for="parent_id" class="layui-form-label">上级节点</label>
        <div class="layui-input-block">
            <input type="text" id="parent_id" name="parent_id" lay-filter="parent_id" class="layui-input"
                value="{{$block->parent_id??''}}">
        </div>
    </div>
    @if(!$block->parent_id)
    <div class="layui-form-item" >
        <label for="number" class="layui-form-label">限制数量</label>
        <div class="layui-input-block">
            <input name="number" type="number" class="layui-input" value="{{$block->number??''}}" placeholder="请填写限制数量">
        </div>
    </div>
    @endif
    <div class="layui-form-item">
        <label for="remark" class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea name="remark" class="layui-textarea">{{$block->remark??''}}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label for="description" class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="description" class="layui-textarea">{{$block->description??''}}</textarea>
        </div>
    </div>
</div>
